﻿/*
 * HTTP请求
 * 使用RestSharp实现
 * wusq
 * 2022-07-21
 */
using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Toolbox.form.net
{
    public partial class HttpForm : UIPage
    {
        public HttpForm()
        {
            InitializeComponent();
        }
        
        public override void Init()
        {
            InitView();
        }

        private void InitView()
        {
            string[] methodArray = new string[] { "GET", "POST" };
            this.uiComboBox1.DataSource = methodArray;
            this.uiComboBox1.SelectedIndex = 0;

            string[] paramArray = new string[] { "JSON", "FORM" };
            this.uiComboBox2.DataSource = paramArray;
            this.uiComboBox2.SelectedIndex = 0;
        }
    }
}
